<!DOCTYPE html>
<html>
<head>
	<base id="base" href="${request.contextPath}">
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	<title>个人中心</title>
	<link rel="stylesheet" type="text/css" href="css/ui.css">
	<link href="images/img/favicon.ico" type="image/x-icon" rel="icon">
	<link href="images/img/iTunesArtwork_402x.png" sizes="114x114" rel="apple-touch-icon-precomposed">
</head>
<body>
	<div class="aui-container">
		<div class="aui-page">
			<div class="aui-page-my">
				<div class="aui-my-info">
					<div class="aui-my-info-back"></div>
					<a href="javascript:;" class="">
						<img src="${user.headimgurl}" class="aui-my-avatar" id="headImg">
					</a>
					<div class="aui-mt-location aui-l-red"></div>
					<div id="nickname">${user.nickname}</div>
					<div>${user.country}-${user.province}-${user.city}</div>
				</div>
				<div class="aui-l-content">
					<div class="aui-menu-list aui-menu-list-clear">
						<ul>
							<li class="b-line">
								<div id="openId" style="display: none">${user.openid}</div>
								<a href="javascript:;" id="user-info">
									<div class="aui-icon"><img src="images/icon-home/my-in1.png"></div>
									<h3>学员信息</h3>
									<div class="aui-time"><i class="aui-jump"></i></div>
								</a>
							</li>
							<li class="b-line">
								<a href="my-read.html">
									<div class="aui-icon"><img src="images/icon-home/my-in2.png"></div>
									<h3>学车进度</h3>
									<div class="aui-time"><i class="aui-jump"></i></div>
								</a>
							</li>
							<li class="b-line">
								<a href="my-secure.html">
									<div class="aui-icon"><img src="images/icon-home/my-in3.png"></div>
									<h3>课程列表</h3>
									<div class="aui-time"><i class="aui-jump"></i></div>
								</a>
							</li>
							<li class="b-line">
								<a href="my-up.html">
									<div class="aui-icon"><img src="images/icon-home/my-in4.png"></div>
									<h3>兴趣活动</h3>
									<div class="aui-time"><i class="aui-jump"></i></div>
								</a>
							</li>
							<li class="b-line">
								<a href="my-up.html">
									<div class="aui-icon"><img src="images/icon-home/my-in5.png"></div>
									<h3>助力好友</h3>
									<div class="aui-time"><i class="aui-jump"></i></div>
								</a>
							</li>
							<li class="b-line">
								<a href="javascript:;" id="feedback">
									<div class="aui-icon"><img src="images/icon-home/my-in6.png"></div>
									<h3>建议反馈</h3>
									<div class="aui-time"><i class="aui-jump"></i></div>
								</a>
							</li>
							<li class="b-line">
								<a href="my-up.html">
									<div class="aui-icon"><img src="images/icon-home/my-in8.png"></div>
									<h3>推荐给好友</h3>
									<div class="aui-time"><i class="aui-jump"></i></div>
								</a>
							</li>
						</ul>
					</div>
				</div>
			</div>
		</div>
	</div>

<script src="/js/jquery-3.2.1.min.js" type="text/javascript"></script>
<script src="/js/bootstrap.min.js"></script>
<script>
    var base = $("#base").attr("href");
	var openId = $("#openId").text().trim();
	var userInfoUrl = base + "/user-info?openId="+openId;
	$("#user-info").attr("href",userInfoUrl);

	var nickname = $('#nickname').text().trim();
	var feedbackUrl = base + "/feedback?openId="+ openId + "&nickname="+ nickname;
    $("#feedback").attr("href",feedbackUrl);
</script>
</body>

</html>